package ee.siimkaspar.subjects.model;


import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.codehaus.jackson.annotate.JsonIgnoreProperties;

@JsonIgnoreProperties({"hibernateLazyInitializer", "handler"})
@Entity
@Table(name = "struct_unit")
public class StructUnit implements Serializable, ModelInterface {

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "struct_unit", unique = true, nullable = false)
	private Integer id;
	@Column(name = "enterprise_fk")
	private Integer enterpriseFk;
	@Column(name = "upper_unit_fk")
	private Integer upperUnitFk;
	@Column(name = "level")
	private Integer level;
	@Column(name = "name", length = 200)
	private String name;

	public StructUnit() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getEnterpriseFk() {
		return this.enterpriseFk;
	}

	public void setEnterpriseFk(Integer enterpriseFk) {
		this.enterpriseFk = enterpriseFk;
	}

	public Integer getUpperUnitFk() {
		return this.upperUnitFk;
	}

	public void setUpperUnitFk(Integer upperUnitFk) {
		this.upperUnitFk = upperUnitFk;
	}

	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}
	@Override
	public boolean validate() {
		// TODO Auto-generated method stub
		return true;
	}
}
